<?php

namespace app\http\middleware;

use app\common\model\User;

class ApiUserStatus
{
    public function handle($request, \Closure $next)
    {

        $user = request()->userTokenUserInfo;
        (new User())->checkStatus($user,true);
        return $next($request);
    }
}
